<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Default.Master" CodeBehind="Forums.aspx.vb" Inherits="KDESolutions.Providers.UnitTests.Forums" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftPane" runat="server">
    <asp:LinkButton ID="lnkManageFourums" runat="server" PostBackUrl="~/ForumsAdmin/ManageForums.aspx">Manage Forums</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CenterPane" runat="server">
   <div class="sectiontitle">Forums</div>
   <p></p>
   Click on the title of the forum for which you want to browse the threads:
   <p>
   </p>
    <table width="693">
            <tr>
            <td style="width: 29px; height: 21px">
            </td>
            <td style="width: 302px; height: 21px">
                Forum</td>
            <td style="width: 128px; height: 21px">
                Last Post</td>
            <td style="height: 21px">
                Threads</td>
        </tr>
   <asp:DataList ID="dlstForums" EnableTheming="False" runat="server" 
      DataSourceID="objAllForums" DataKeyField="ID" Width="100%" RepeatColumns="1" RepeatDirection="Horizontal">
        <ItemTemplate>
        <tr>
            <td style="width: 29px" valign="top">
                <asp:Image ID="imgForumImage" runat="server" /></td>
            <td style="width: 302px" valign="top">
                <asp:LinkButton ID="lnkForumTitle" runat="server" Text='<%# Eval("Title") %>' PostBackUrl='<%# "BrowseThreads.aspx?ForumID=" & Eval("ID") %>' />
                <br />
                <asp:Label ID="lblForumDescription" runat="server" Text='<%# Eval("Description") %>' Width="56px"></asp:Label></td>
            <td style="width: 128px" valign="top">
                <table width="100%">
                    <tr>
                        <td colspan="2">
                            <asp:LinkButton ID="lnkLatestPost" runat="server"></asp:LinkButton></td>
                    </tr>
                    <tr>
                        <td style="width: 108px; height: 40px">
                            by
                            <asp:Label ID="lblLatestPostBy" runat="server" Text=""></asp:Label></td>
                        <td style="height: 40px">
                            <asp:Label ID="lblLatestPostDate" runat="server" Text=""></asp:Label></td>
                    </tr>
                </table>
            </td>
            <td valign="top" align="center">
                <asp:Label ID="lblThreadCount" runat="server" Text=""></asp:Label></td>
        </tr>
        </ItemTemplate>
    </asp:DataList>
        </table>
       <asp:ObjectDataSource ID="objAllForums" runat="server" SelectMethod="GetForums"
           TypeName="KDESolutions.Providers.Forums.ForumService"></asp:ObjectDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightPane" runat="server">
</asp:Content>
